import Vue from 'vue'
import VueRouter from 'vue-router'
// 导入两个页面
import Login from'../views/Login/Login.vue'
import Reg from '../views/Reg/Reg.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/Login',
    name: 'login',
    component: Login
  },
  {
    path: '/Reg',
    name: 'reg',
    component: Reg
  }
]

const router = new VueRouter({
  routes
})

export default router
